<template>
  <a-tag color="blue" v-if="status === 0">可用</a-tag>
  <a-tag color="red" v-else>不可用</a-tag>
</template>

<script lang="ts">
import { defineComponent } from "vue";

export default defineComponent({
  name: "StatusTag",
  props: {
    status: {
      type: Number,
      required: true,
    },
  },
  setup() {
    return {};
  },
});
</script>

<style scoped lang="scss"></style>
